package ooday03.Society;

public class Teacher extends Person {
    double salary;
    Teacher(String name,String address,int age,double salary){
        super(name,address,age);
        this.salary=salary;
    }
    void teach(){
        System.out.println(name+" is teaching");
    }
    void sayHi(){
        System.out.println("Hi everyone, my name is: "+name+", I'm "+age+" years old, I live in "+address);
        System.out.println(", my salary is: "+salary);
        System.out.println();
    }
}
